import * as ActionTypes from '../constants/ActionTypes';

function pickPointAction(data) {
  return {
    'type': ActionTypes.PICKET_POINT,
    'payload': data,
  };
}

export function pickPoint(data, path, eventName) {
  const dataObj = { data, path, eventName };
  return function (dispatch) {
    dispatch(pickPointAction(dataObj));
  }
}
  